package jin.dao;

import jin.model.User;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by Administrator on 2016/11/8.
 */
@RepositoryRestResource
public interface UserDao extends PagingAndSortingRepository<User,Long>{

    User findUserByUsername(@Param("username")String username);
}
